package com.ruoyi.drug.mapper;

import com.ruoyi.drug.domain.DrugsSupport;

import java.util.List;

/**
 * 供应商Mapper接口
 *
 * @author ruoyi
 * @date 2022-11-13
 */
public interface DrugsSupportMapper
{
    /**
     * 查询供应商
     *
     * @param supportId 供应商主键
     * @return 供应商
     */
    public DrugsSupport selectDrugsSupportBySupportId(Long supportId);

    /**
     * 查询供应商列表
     *
     * @param drugsSupport 供应商
     * @return 供应商集合
     */
    public List<DrugsSupport> selectDrugsSupportList(DrugsSupport drugsSupport);

    /**
     * 新增供应商
     *
     * @param drugsSupport 供应商
     * @return 结果
     */
    public int insertDrugsSupport(DrugsSupport drugsSupport);

    /**
     * 修改供应商
     *
     * @param drugsSupport 供应商
     * @return 结果
     */
    public int updateDrugsSupport(DrugsSupport drugsSupport);

    /**
     * 删除供应商
     *
     * @param supportId 供应商主键
     * @return 结果
     */
    public int deleteDrugsSupportBySupportId(Long supportId);

    /**
     * 批量删除供应商
     *
     * @param supportIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDrugsSupportBySupportIds(Long[] supportIds);
}
